package com.lxk.service.cart.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户 App - 购物车重置
 */
@Data
public class CartResetParam {

    @NotNull(message = "编号不能为空")
    private Long id;

    @NotNull(message = "商品 SKU 编号不能为空")
    private Long skuId;

    private Long merId = 0L;

    @NotNull(message = "数量不能为空")
    @Min(message = "数量必须大于 0", value = 1L)
    private Integer count;

}
